package com.company.oa.announcement.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class AnnouncementDTO {
    
    private Long id;
    
    @NotBlank(message = "公告标题不能为空")
    private String title;
    
    @NotBlank(message = "公告内容不能为空")
    private String content;
    
    @NotNull(message = "公告类型不能为空")
    private Integer type;
    
    @NotNull(message = "生效时间不能为空")
    private LocalDateTime startTime;
    
    @NotNull(message = "失效时间不能为空")
    private LocalDateTime endTime;
    
    private Integer isTop;
    
    private LocalDateTime topEndTime;
    
    private Integer status;
    
    private List<ScopeDTO> scopes;
} 